//
//  PreferentialViewController.h
//  classroom
//
//  Created by apple on 12-10-23.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface PreferentialViewController : UIViewController<UITableViewDataSource,UITableViewDelegate>
{

    NSMutableArray *_dataArray;

}
@property (retain, nonatomic) IBOutlet UITableView *PreferentialTableView;//tableview
@property (retain, nonatomic) IBOutlet UISegmentedControl *segment;   //segment
@property (retain, nonatomic) NSMutableDictionary *preferenceDic;
@property (retain, nonatomic) NSMutableDictionary *discountDic;

@property (retain, nonatomic) NSMutableDictionary *PrefRequestResultDic;//存放url请求返回的数据
@property (retain, nonatomic) NSMutableArray *nameStrArray;//存放活动折扣的名字
@property (retain, nonatomic) NSMutableArray *dateStrArray;//存放活动折扣的时间
@property (retain, nonatomic) NSMutableArray *informationArray;//存放获取的数组 ，里面的元素类型为 字典

@property (retain, nonatomic) NSMutableDictionary *weatherDic;
@property (retain, nonatomic) NSMutableArray *cityStrArray;//测试存放活动折扣的名字
@property (retain, nonatomic) NSMutableArray *temperatureStrArray;//存放活动折扣的时间
@property (nonatomic) int selectedSegment;

@property (retain,nonatomic) UIActivityIndicatorView *waitIndicatorView;
@property (retain,nonatomic) UILabel *loadinglabel;

-(void)initArray;//初始化数组
-(void)BackTOMenu;//在二级菜单下返回主页
-(void)initDictionary;
-(void)requestData:(NSString *)urlString;
-(void)parseDate:(NSMutableDictionary*)dic;
-(void)setCellText:(NSMutableDictionary *)tempDic;//从字典中取数据
@end
